import type { DictDataInOrUpReq, QueryDictDataReq } from './dictDataType'
import request from '@/utils/http/request'

// 分页查询数据字典明细
export function getDictDataPage(data: QueryDictDataReq) {
  return request.post<any>({
    url: '/pm-base/api/v1/dictData/page',
    data,
  })
}

// 保存字典明细
export function saveDictData(data: DictDataInOrUpReq) {
  return request.post<any>({
    url: '/pm-base/api/v1/dictData/save',
    data,
  })
}
